<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
        <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>  
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		var keyword = $("#keyword").val();
		$(":input[name=update]").click(function(){
			alert(keyword);
			location.href = "${initParam.root}info/infoUpdate_view.moja?keyword=" + keyword;
		});
		$(":input[name=delete]").click(function(){
			if(confirm("삭제하시겠습니까?")){
				location.href = "${initParam.root}info/infoDelete.moja?keyword=" + keyword;
			}
		});
		$(":input[name=home]").click(function(){
			location.href = "${initParam.root}member/home.moja";
		});
	});
</script>
 <style>
.gray {
   color: #e9e9e9;
   /* border: solid 1px #555; */
   background: #6e6e6e;
   background: -webkit-gradient(linear, left top, left bottom, from(#888), to(#575757));
   background: -moz-linear-gradient(top,  #888,  #575757);
   filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#888888', endColorstr='#575757');
}

</style>
<div id="mainCss">
<form id="keywordFrm">
<img src="${initParam.root }img/pen1.jpg"><font size="5px">등록된 정보확인</font><br><br>
<table border="1">
	<tr>
	<td bgcolor="#D2D2D2" align="center"><font color="#000000" size="2px"><b>제목</b></font></td>
	<td colspan="5"><input size="40px" type="text" id = "keyword"value = "${requestScope.infoVO.keyword}"readonly></td>
	</tr>
   <tr>
	<td bgcolor="#D2D2D2" align="center"><font color="#000000" size="2px"><b>대분류</b></font></td>
	<td><input size="5" type="text" value = "${requestScope.infoVO.category}" readonly></td>
   <td bgcolor="#D2D2D2" align="center"><font color="#000000" size="2px"><b>중분류</b></font></td>
   <td><input size="5" type="text" value = "${requestScope.infoVO.division}" readonly></td>
   <!-- 여기가 문제가 날꺼같은 예상지역  -->
   <td bgcolor="#D2D2D2" align="center"><font color="#000000" size="2px"><b>소분류</b></font></td>
   <td>
   <c:if test="${requestScope.infoVO.section != null }">
   <input size="5px" type="text" value = "${requestScope.infoVO.section}" readonly>
   </c:if></td>
   
    </tr>
	<tr>
	<td bgcolor="#D2D2D2" align="center"><font color="#000000" size="2px"><b>내용</b></font></td>
	<td colspan="5">
	<textarea cols="75" rows="15" readonly>${requestScope.infoVO.contents} </textarea>
	</td>
	</tr>
	<!-- <td colspan="6" align="center"><input type="submit" value="정보등록" class="gray"> -->
	<tr>
	<td colspan="6" align="center">
	<input type="button" name = "update" value="정보수정" class="gray">
     <input type="button" name = "delete" value="삭제"  class="gray">
    <a href = "${initParam.root }member/home.moja"><input type = "submit" value = "검색 홈" class="gray"></a>
	</td></tr>
</table>
</form>
</div>
